/*
 * @Author: your name
 * @Date: 2020-11-10 19:52:00
 * @LastEditTime: 2020-11-12 19:52:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /COPO_WEB/src/pages/App/store/reducer.js
 */
import * as actionType from './actionType';

export default (state = {}, action) => {
    switch (action.type) {
        case actionType.GETLOGIN: {
            return { ...state, isLogin: true}
        }
        case actionType.GET_SYSTEM: {
            return { ...state, systemRole:action.systemRole}
        }
        case actionType.LOGOUT: {
            return {
                ...state, isLogin: false
            }
        }
        case actionType.GETQRCODE:{
            return{
                ...state, QRcodeinformation:action.payload
            }
        }
        case actionType.GETQCODE:{
            return {
                ...state,validateString:action.validateString
            }
        }
        default:
            return state;
    }
}